//
//  PublicViModel.m
//  ServerDemo
//
//  Created by rp.wang on 2018/1/10.
//  Copyright © 2018年 兰州北科维拓科技股份有限公司. All rights reserved.
//

#import "PublicViModel.h"

@implementation PublicViModel

+(PublicViModel *)sharedInstance
{
    static PublicViModel * viewModel;
    
    static dispatch_once_t viewModeleronce;
    
    dispatch_once(&viewModeleronce, ^{
        
        viewModel = [[PublicViModel alloc] init];
        
    });
    
    return viewModel;
}
- (BOOL) isBlankString:(NSString *)string
{
    if (string == nil || string == NULL) {
        return YES;
    }
    if ([string isKindOfClass:[NSNull class]]) {
        return YES;
    }
    if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length] == 0) {
        return YES;
    }
    if( [string isEqualToString:@""])
    {
        return YES;
    }
    if([string isEqualToString:@"<null>"])
    {
        return YES;
    }
    if([string isEqualToString:@"(null)"])
    {
        return YES;
    }
    return NO;
}

-(void)setExtraCellLineHidden: (UITableView *)tableView
{
    UIView *view =[ [UIView alloc]init];
    
    view.backgroundColor = [UIColor clearColor];
    
    [tableView setTableFooterView:view];
    
    [tableView setTableHeaderView:view];
}

@end
